package cn.gov.pbc.dream.dao;

import cn.gov.pbc.dream.pojo.repository.AssetPoolDo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AssetPoolDoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AssetPoolDo record);

    int insertSelective(AssetPoolDo record);

    AssetPoolDo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AssetPoolDo record);

    int updateByPrimaryKey(AssetPoolDo record);

    int deleteByReportOrgCodeAndReportTime(@Param("reportOrgCode") String reportOrgCode,
                                           @Param("reportTime") Date reportTime);

    AssetPoolDo selectByAssetPoolCode(String code);

    int selectCountByAssetPoolCode(String assetPoolCode);

    int selectCountByOrg(Integer orgId);
}